package com.liuqi.aiagent.mapper;

import com.liuqi.aiagent.transfer.entity.WebhookTool;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author liuqi
 * @date 2025/7/15
 **/
@Repository
@Mapper
public interface WebhookToolMapper {

    int insert(WebhookTool webhookTool);

    Integer findIdByGroupNameAndToolName(String groupName, String toolName);

    int update(WebhookTool webhookTool);

    List<WebhookTool> findAll();

    List<WebhookTool> findAllByIds(List<Integer> ids);

    List<WebhookTool> findAllOfBrief();

    int deleteById(int id);

}
